
<h1>Sửa danh mục</h1>
<?php 
//    foreach($errors as $error){
//        echo $error;
//    }
//    
?>
<form action="" method="post" class="form-horizontal" role="form">
    <div class="form-group">
        <label class="col-sm-2 control-label">Tên danh mục</label>
        <div class="col-sm-10">
            <input name="name" type="text" value="<?php echo htmlentities($categorie['name'],ENT_QUOTES, "UTF-8"); ?>" class="form-control"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Keyword</label>
        <div class="col-sm-10">
            <textarea name="keywords"  class="form-control"><?php echo htmlentities($categorie['keywords'],ENT_QUOTES, "UTF-8"); ?></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Nội dung</label>
        <div class="col-sm-10">
            <textarea name="description" class="form-control "><?php echo htmlentities($categorie['description'],ENT_QUOTES, "UTF-8") ; ?></textarea>
        </div>
    </div>
     <div class="form-group">
        <label class="col-sm-2 control-label">Vị trí</label>
        <div class="col-sm-10">
            <textarea name="position" class="form-control "><?php echo htmlentities($categorie['position'],ENT_QUOTES, "UTF-8") ; ?></textarea>
        </div>
    </div>
    <div class="form-group ">
        <div class="col-lg-10 col-lg-offset-2">
             <input type="submit" value="Cập nhật" class="btn btn-success"/>
             <a href="admin.php?r=articles/index" class="btn btn-info">Trở về</a>
        </div>
    </div>
    
</form>
<script type="text/javascript" src="public/plugins/tinymce/tinymce.min.js"></script>